{php}
{//var_dump($list);}
{/php}
<style type="text/css">
  .app_detials_app_p{line-height: 40px;}
</style>
<div class="layui-card-body">
    
<div class="layui-form-item">
  <ul class="layui-timeline">

  <li class="layui-timeline-item">
    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
    <div class="layui-timeline-content layui-text">
      <h3 class="layui-timeline-title">访客&nbsp;{$list.vister_name} 发出预约于<small>{$list.createtime|format_datetime}</small></h3>
      <p class="app_detials_app_p">
      受访人:{$list.app_user_name}   &nbsp;&nbsp; 受访部门:{$list.napp_dept_name}
      </br>


      预约信息:{$list.app_reson}
      </br>
      备注:{$list.app_remark|default="-"}
     <i class="layui-icon"></i>
      </p>
    </div>
  </li>

<hr style="width: 95%" class="layui-bg-blue">
 

    <li class="layui-timeline-item">
    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
    <div class="layui-timeline-content layui-text">
      <h3 class="layui-timeline-title">访客来访计划</h3>
      <p class="app_detials_app_p">
       访客预约<small>{$list.app_visittime|format_datetime}</small>来临
       </br>
       访客联系:{$list.vister_mobile|default="-"}
       </br>
       受访公司:{$list.app_company_name}
        </br>
       受访人:{$list.app_user_name|default="-"}   &nbsp;&nbsp; 受访部门:{$list.napp_dept_name|default="-"}
       </br>

       访问地点:{$list.address}
     <i class="layui-icon"></i>
      </p>
    </div>
  </li>
<hr style="width: 65%" class="layui-bg-orange">
      <li class="layui-timeline-item">
    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
    <div class="layui-timeline-content layui-text">
      <h3 class="layui-timeline-title">访客访问信息</h3>
      <p class="app_detials_app_p">
      访客到访时间:{$list.vister_arrivetime|format_datetime|default="-"}
    </br>
    {if $list.security_uid}
      门卫:{$list.security_name|default="-"} ---- 
      {if $list.security_refusetime}
      门卫拒绝进入:{$list.security_refusetime|format_datetime|default="-"}
    </br>
      原因:{$list.security_refuseremark|default="拒绝进入"}
      {else}---- 放行时间&nbsp;{$list.security_passtime|format_datetime|default="-"}{/if}

    {/if}
    </br>
     访客完成访问:{$list.vister_meettime|default="-"}
     </br>
     访客离开:{$list.vister_leavetime|default="-"}
     <i  class="layui-icon">-</i>

      </p>
    </div>
  </li>
<hr style="width: 35%" class="layui-bg-green">
</ul>
        </div>

    <div class="layui-form-item text-center">
      {if $list.auditing eq 0}
        <button class="layui-btn layui-btn-normal" data-action="{:url('state')}" data-value="id#{$list.id};auditing#1;type#viss" data-csrf="{:systoken('state')}">同意来访</button>
        <button class="layui-btn layui-btn-warm" data-action="{:url('state')}" data-value="id#{$list.id};auditing#2;type#viss" data-csrf="{:systoken('state')}">不同意来访</button>
      {/if}
        <button class="layui-btn layui-btn-danger" type='button'  data-close>关闭</button>
    </div>

       
    </div>